package com.ming.sportdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ming.sportdemo.bean.Clothes;
import com.ming.sportdemo.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ClothesService extends IService<Clothes> {
    public Clothes getClothesByMessage(@Param("clothesId") String clothesId, @Param("clothesName") String clothesName, @Param("clothesPrice") String clothesPrice);
    public List<Clothes> getAllClothes(@Param("clothesType")String clothesType,@Param("clothesName")String clothesName, @Param("pageStart") int pageStart, @Param("pageSize")int pageSize);
    public int getClothesCounts(@Param("clothesName")String clothesName);
    public int addClothes(Clothes clothes);
    public int deleteClothes(@Param("clothesId") int clothesId);
    public int updateClothes(Clothes clothes);
    Clothes getByName(@Param("clothesName")String clothesName);
    int sub(@Param("clothesId")int clothesId);
}
